package com.ruoyi.yiqikan.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yiqikan.mapper.VideoRoomMapper;
import com.ruoyi.yiqikan.domain.VideoRoom;
import com.ruoyi.yiqikan.service.IVideoRoomService;

/**
 * 观影房Service业务层处理
 * 
 * @author fay
 * @date 2022-11-24
 */
@Service
public class VideoRoomServiceImpl implements IVideoRoomService 
{
    @Autowired
    private VideoRoomMapper videoRoomMapper;

    /**
     * 查询观影房
     * 
     * @param id 观影房主键
     * @return 观影房
     */
    @Override
    public VideoRoom selectVideoRoomById(Long id)
    {
        return videoRoomMapper.selectVideoRoomById(id);
    }

    /**
     * 查询观影房列表
     * 
     * @param videoRoom 观影房
     * @return 观影房
     */
    @Override
    public List<VideoRoom> selectVideoRoomList(VideoRoom videoRoom)
    {
        return videoRoomMapper.selectVideoRoomList(videoRoom);
    }

    /**
     * 新增观影房
     * 
     * @param videoRoom 观影房
     * @return 结果
     */
    @Override
    public int insertVideoRoom(VideoRoom videoRoom)
    {
        return videoRoomMapper.insertVideoRoom(videoRoom);
    }

    /**
     * 修改观影房
     * 
     * @param videoRoom 观影房
     * @return 结果
     */
    @Override
    public int updateVideoRoom(VideoRoom videoRoom)
    {
        return videoRoomMapper.updateVideoRoom(videoRoom);
    }

    /**
     * 批量删除观影房
     * 
     * @param ids 需要删除的观影房主键
     * @return 结果
     */
    @Override
    public int deleteVideoRoomByIds(Long[] ids)
    {
        return videoRoomMapper.deleteVideoRoomByIds(ids);
    }

    /**
     * 删除观影房信息
     * 
     * @param id 观影房主键
     * @return 结果
     */
    @Override
    public int deleteVideoRoomById(Long id)
    {
        return videoRoomMapper.deleteVideoRoomById(id);
    }
}
